std::basic_string::length
From Cppreference
< cpp | string | basic string
| size_type length() const;
| ||
Returns the number of characters in the string, i.e. std::distance(begin(), end()). It is the same as size().
Contents |
Parameters
(none)
Return value
the number of characters in the string
Complexity
constant
See also
| checks whether the string is empty (public member function) | |
| returns the number of characters (public member function) | |